package model

// CheckIn1Procedure 签到1的过程信息
type CheckIn1Procedure struct {
	LastCheckInDate        string `json:"last_check_in_date"`        // 上次签到日期 2021-04-05这种格式
	ContinuousCheckInCount uint32 `json:"continuous_check_in_count"` // 连续签到次数
}

type Lottery1ProcedureDrawedInfo struct {
	DrawedNumber uint32 `json:"drawed_number"` // 抽奖号码
	DrawedAt     string `json:"drawed_at"`     // 抽奖时间
	DrawedWin    bool   `json:"drawed_win"`    // 是否抽中,不一定代表中奖,因为可能中了没库存,导致给前端还是显示未中奖
	Prize        uint32 `json:"prize"`         // 几等奖
}

// Lottery1Procedure 抽奖1的过程信息
type Lottery1Procedure struct {
	AvailableCount uint32                         `json:"available_count"` // 可用抽奖次数
	DrawedCount    uint32                         `json:"drawed_count"`    // 已抽奖次数
	DrawedInfos     []*Lottery1ProcedureDrawedInfo `json:"drawed_infos"`     // 已抽奖信息
	// Distributions  []PrizeDistribution            `json:"distributions"`   // 奖项分布 [{1,[15,213,511]}, {2, {23,123,182,321,512,982}}]
}

// ActivityUserProcedureExtInfo (check_in__1)
type ActivityUserProcedureExtInfo struct {
	CheckIn1 CheckIn1Procedure `json:"check_in__1,omitempty"`
	Lottery1 Lottery1Procedure `json:"lottery__1,omitempty"`
}
